from rapidfuzz import fuzz
from functools import lru_cache


@lru_cache(maxsize=10000)
def similar(a: str, b: str) -> float:
    return fuzz.ratio(a, b) / 100.0
